<?php
	include_once '../../conn/all.php';
	$id=$_GET['id'];
	$res=sql("s", "user", "*","where id=".$id);
	$member=$res['member'];
	$pwd=$res['pwd'];
	$tel=$res['tel'];
	$email=$res['email'];
	$another=$res['another'];
	$act=$res['act'];
	$money=$res['money'];
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.php?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>添加内容</title>
<script language = 'JavaScript'>
var onecount;
subcat = new Array();
onecount=0;
function Checkimg(){ 
if (document.myform.title.value==null || document.myform.title.value.length == 0) {
	alert(user_msg['js13']);
	document.myform.title.focus();
	return false;
}
if (document.myform.class2.value =='0') {
	alert(user_msg['js14']);
	document.myform.class2.focus();
	return false;
}
}</script>
</head>
<body>
<form  method="POST" name="myform" action="../control.php?oper=member_edit&id=<?=$_GET['id'];?>" target="_self">
	
<table cellpadding="2" cellspacing="1" class="table">
          <tr> 
            <td colspan="3" class="title">编辑用户内容</td>
          </tr>		  

		  <tr> 
            <td class="text">用户名</td>
            <td colspan="2" class="input"> <?=$member;?></td>
          </tr>
 <tr> 
            <td class="text">密码</td>
            <td colspan="2" class="input"> <input name="pwd" type="text" class="text nonull" value="<?=$pwd;?>"></td>
          </tr><tr> 
            <td class="text">电话</td>
            <td colspan="2" class="input"> <input name="tel" type="text" class="text nonull" value="<?=$tel;?>"></td>
          </tr><tr> 
            <td class="text">e-mail</td>
            <td colspan="2" class="input"> <input name="email" type="text" class="text nonull" value="<?=$email;?>"></td>
          </tr><tr> 
            <td class="text">其他联系方式</td>
            <td colspan="2" class="input"> <input name="another" type="text" class="text nonull" value="<?=$another;?>"></td>
          </tr><tr> 
            <td class="text">是否激活</td>
            <td colspan="2" class="input"> <input name="act" type="text" class="text nonull" value="<?=$act;?>"></td>
          </tr><tr> 
            <td class="text">是否付款</td>
            <td colspan="2" class="input"><?=$money;?></td>
          </tr>
		  <tr> 
            <td class="text"></td>
	      <td class="submit"><input type="submit" name="Submit" value="保存" class="submit" onclick="return Smit($(this),'myform')" /><input type="reset" name="Submit" value="重置" class="reset" /> </td>
          </tr>
		<tr>
		  <td class="footer" colspan="2"> </td>
	  </tr>
</table>        
</form>
</body>
</html>
